﻿-- =============================================
-- Author:		Alejandro González
-- Create date: 9/9/2010
-- Description:	Inserts Bank in table Bank (due to Linq limitations)
-- =============================================
CREATE PROCEDURE InsertBank
	-- Add the parameters for the stored procedure here
	@description varchar(50),
	@picture image
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	INSERT INTO [Banks]
           ([Description],[Picture])
     VALUES
           (@description,@picture)
	SELECT Cast(@@IDENTITY AS tinyint) AS Id
END
